<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>菜品接收设置管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			layer.load(1, {
			    shade: [0.3,'#000'] //0.1透明度的白色背景
			});
			$("#searchForm").submit();
        	return false;
        }
        <shiro:hasPermission name="pay:restaurantOrderPayRefund:edit">
		function deleteById(id){
			layer.confirm('确认要删除该菜品接收设置吗？', {
				btn: ['确定','取消']
			}, function(){
				window.location.href='${ctx}/pay/restaurantOrderPayRefund/delete?id='+id;
			}, function(){
				layer.msg('删除取消', {
					time: 2000 //2s后自动关闭
					 });
			});
        }
        </shiro:hasPermission>
	</script>
</head>
<body>
	<ul class="nav nav-tabs nav-tabss">
		<li class="active"><a href="${ctx}/pay/restaurantOrderPayRefund/">菜品接收设置列表</a></li>
		<shiro:hasPermission name="pay:restaurantOrderPayRefund:edit"><li><a href="${ctx}/pay/restaurantOrderPayRefund/form">菜品接收设置添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="restaurantOrderPayRefund" action="${ctx}/pay/restaurantOrderPayRefund/" method="post" class="breadcrumb form-search form-inline">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
            <label>restaurantOrderId：</label>
            <form:input path="restaurantOrderId" htmlEscape="false" cssClass="form-control"/>
            <label>mchId：</label>
            <form:input path="mchId" htmlEscape="false" cssClass="form-control"/>
            <label>outTradeNo：</label>
            <form:input path="outTradeNo" htmlEscape="false" cssClass="form-control"/>
            <label>tradeNo：</label>
            <form:input path="tradeNo" htmlEscape="false" cssClass="form-control"/>
            <label>outRefundNo：</label>
            <form:input path="outRefundNo" htmlEscape="false" cssClass="form-control"/>
            <label>refundAmount：</label>
            <form:input path="refundAmount" htmlEscape="false" cssClass="form-control"/>
            <label>amount：</label>
            <form:input path="amount" htmlEscape="false" cssClass="form-control"/>
            <label>refundReason：</label>
            <form:input path="refundReason" htmlEscape="false" cssClass="form-control"/>
            <label>notifyUrl：</label>
            <form:input path="notifyUrl" htmlEscape="false" cssClass="form-control"/>
            <label>result：</label>
            <form:input path="result" htmlEscape="false" cssClass="form-control"/>
            <label>errCode：</label>
            <form:input path="errCode" htmlEscape="false" cssClass="form-control"/>
            <label>errMsg：</label>
            <form:input path="errMsg" htmlEscape="false" cssClass="form-control"/>
            <label>refundStatus：</label>
            <form:input path="refundStatus" htmlEscape="false" cssClass="form-control"/>
		&nbsp;<input id="btnSubmit" class="btn btn-sm btn-primary" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr>
            <th>restaurantOrderId</th>
            <th>mchId</th>
            <th>outTradeNo</th>
            <th>tradeNo</th>
            <th>outRefundNo</th>
            <th>refundAmount</th>
            <th>amount</th>
            <th>refundReason</th>
            <th>notifyUrl</th>
            <th>result</th>
            <th>errCode</th>
            <th>errMsg</th>
            <th>refundStatus</th>
			<shiro:hasPermission name="pay:restaurantOrderPayRefund:edit"><th>操作</th></shiro:hasPermission></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="restaurantOrderPayRefund">
			<tr>
                <td>${restaurantOrderPayRefund.restaurantOrderId}</td>
                <td>${restaurantOrderPayRefund.mchId}</td>
                <td>${restaurantOrderPayRefund.outTradeNo}</td>
                <td>${restaurantOrderPayRefund.tradeNo}</td>
                <td>${restaurantOrderPayRefund.outRefundNo}</td>
                <td>${restaurantOrderPayRefund.refundAmount}</td>
                <td>${restaurantOrderPayRefund.amount}</td>
                <td>${restaurantOrderPayRefund.refundReason}</td>
                <td>${restaurantOrderPayRefund.notifyUrl}</td>
                <td>${restaurantOrderPayRefund.result}</td>
                <td>${restaurantOrderPayRefund.errCode}</td>
                <td>${restaurantOrderPayRefund.errMsg}</td>
                <td>${restaurantOrderPayRefund.refundStatus}</td>
				<shiro:hasPermission name="pay:restaurantOrderPayRefund:edit"><td>
    				<a href="${ctx}/pay/restaurantOrderPayRefund/form?id=${restaurantOrderPayRefund.id}">修改</a>
                    <a href="javascript:deleteById('${restaurantOrderPayRefund.id}')">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
